// import { store } from 'quasar/wrappers'
import { createPinia } from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persist'
/*
 * If not building with SSR mode, you can
 * directly export the Store instantiation;
 *
 * The function below can be async too; either use
 * async/await or return a Promise which resolves
 * with the Store instance.
 */
const pinia = createPinia()
pinia.use(piniaPluginPersist)
export default pinia
// export default store((/* { ssrContext } */) => {
//   const pinia = createPinia()

//   // You can add Pinia plugins here
//   // pinia.use(SomePiniaPlugin)
//   pinia.use(({ store }) => {
//     store.$subscribe(() => {
//       // react to store changes
//     })
//     store.$onAction(() => {
//       // react to store actions
//     })
//   })

//   return pinia
// })
